package com.example.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Create By ChenXiAoBin
 * on 2019/1/18
 */
@Data
public class Employee {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "员工ID")
    private Integer id;

    @TableField("name")
    @ApiModelProperty(value = "员工姓名")
    private String name;

    @TableField("serial_number")
    @ApiModelProperty(value = "编号")
    private String serialNumber;

    @TableField("sex")
    @ApiModelProperty(value = "性别")
    private Integer sex;

}
